fix(lint): ESLint error in AuthForm and ignore generated folders #79
+15
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #76.
npm run lintfailed on main, sonpm run checkfailed for every branch.What
1.
fix(auth): separate refs inAuthForm.tsxESLint's
react-hooks/refsrule (React Compiler) rejected readinginputs.passwordwhile rendering. The refs were kept in an object,inputs = { username, password }, from #65. They are now two plain refs,usernameInputandpasswordInput, passed straight toref. Focus still moves to the first field with an error.2.
chore(lint): ignore generated foldersESLint and Prettier checked the files that the tests generate, and ESLint warned about files in
coverage/afternpm run test:coverage.eslint.config.jsand.prettierignorenow skipcoverage,test-results,playwright-reportandblob-report, the same folders as.gitignore.How it was tested
npm run lint: 0 problemsnpx vitest run src/features/auth: all pass, including the focus tests inAuthForm.test.tsxnpm run checkPrettier still fails on Windows because Git turns LF into CRLF in the working copy. That is not from this PR, and it is fixed in issue #78 with
.gitattributes.